{extend name="common/common"/}

{block name="content"}
<form method="post" action="{:url('update')}" class="am-form am-form-horizontal">
    <div class="row">
        <div class="col-md-9">
            <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">
                    账号
                </div>
                <div class="am-u-sm-8 am-u-md-4">
                    <input type="text" name="username" value="{$info['username']}" class="am-input-sm">
                </div>
                <div class="am-hide-sm-only am-u-md-6">*</div>
            </div>
            <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">
                    密码
                </div>
                <div class="am-u-sm-8 am-u-md-4">
                    <input  type="password" name="password" value="{$info['password']}" class="am-input-sm">
                </div>
                <input type="hidden" name="old_password" value="{$info['password']}">
                <div class="am-hide-sm-only am-u-md-6">*</div>
            </div>
            <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">
                    余额
                </div>
                <div class="am-u-sm-8 am-u-md-4">
                    <input type="text" name="money" value="{$info['money']}" class="am-input-sm">
                </div>
                <div class="am-hide-sm-only am-u-md-6"></div>
            </div>
            <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right">状态</div>
                <div class="am-u-sm-8 am-u-md-10">
                    <select data-am-selected="{btnSize: 'sm'}" name="status">
                        <option value="1" {if condition="$info['status']['val'] eq 1"}selected{/if} >启用</option>
                        <option value="2" {if condition="$info['status']['val'] eq 2"}selected{/if} >禁用</option>
                    </select>
                </div>
            </div>
            <div class="am-g am-margin-top">
                <div class="am-u-sm-4 am-u-md-2 am-text-right"></div>
                <div class="am-u-sm-8 am-u-md-10">
                    <button type="submit" class="am-btn am-btn-primary">保存</button>
                </div>
            </div>



        </div>
    </div>
</form>
{/block}